home *** CD-ROM | disk | FTP | other *** search
Wrap
<html> <head> <title>Yafeisoft FlashEnjoy Flash Getter</title> </head> <body> <script language="javascript"> //║»╩²╙├╙┌╜½╚í╡├╡─╕≈╓╓Flash╬─╝■╡─╨┼╧ó╨┤╚δ╩²╫Θ function writearray(filesrc,filewidth,fileheight) { swffileurl.push(filesrc); swffilew.push(filewidth); swffileh.push(fileheight); return; } //║»╩²╙├╙┌┤ª└φ╚í╡├╡─Flash╬─╝■╡─URL╨┼╧ó function processurl(myurl) { var endurl; if (myurl.indexOf("http://")!=-1) endurl=myurl; else { var pageurl; hostname=external.menuArguments.location.hostname; pathname=external.menuArguments.location.pathname; pageurl="http://"+hostname+pathname; pagepath=pageurl.substring(0,pageurl.lastIndexOf("/")+1); if (myurl.charAt(0)!="." && myurl.charAt(0)!="/") endurl=pagepath+myurl; else if (myurl.charAt(0)=="/") endurl="http://"+hostname+myurl; else { if (myurl.charAt(0)==".") { endurl=pagepath; while (myurl.charAt(0)==".") { myurl=myurl.substr(3); endurl=endurl.substring(0,endurl.length-1); endurl=endurl.substring(0,endurl.lastIndexOf("/")+1); } endurl=endurl+myurl; } } } return(endurl); } //║»╩²╙├╙┌╚í╡├╦∙╙╨Flash╬─╝■╡─╨┼╧ó function getinfo() { for(i=0;i<srcDocument.applets.length;i++) // ╤¡╗╖╙├╙┌╚í╡├╦∙╙╨╥│├µ─┌╡─Flash╬─╝■ { tObject=srcDocument.applets[i]; // ╥²╙├╥│├µ╡─Object╝»║╧ t=tObject.codeBase; // ╚í╡├╡▒╟░Object╢╘╧≤╡─└α╨═(┐¬╖ó╔╠) ss=t.toLowerCase(); if(ss.indexOf("macromedia.com")>0) // ┼╨╢╧╕├▓σ╝■╩╟▓╗╩╟Macromedia┐¬╖ó╡─Flash▓σ╝■ { tt=tObject.getAttribute("Movie"); // ╚í╡├<param name=movie í¡>╡─╓╡ú¼╝┤SWF╡─URL w=tObject.width; // ╚í╡├Flash╡─┐φ╢╚╓╡ h=tObject.height; // ╚í╡├Flash╡─╕▀╢╚╓╡ tt=processurl(tt); writearray(tt,w,h); } } return; } //║»╩²╙├╙┌┤┤╜¿╙├╗º▓┘╫≈┤░┐┌ú¼╙├╙┌╘ñ└└╙δ▒ú┤µ function mainwindow() { var outstr=""; var openwin=window.open("","flashbrowser","height=400,width=625,toolbar=no,location=no,scrollbars=yes,status=no,menubar=no,top=100,left=100"); with (openwin.document) { open(); writeln("<HTML>"); writeln("<HEAD>"); writeln("<TITLE>Yafeisoft FlashEnjoy Flash Getter<\/TITLE>"); writeln("<STYLE TYPE=\"TEXT\/CSS\">"); writeln("BODY {"); writeln(" SCROLLBAR-FACE-COLOR: #dce0e2; SCROLLBAR-HIGHLIGHT-COLOR: #ffffff; SCROLLBAR-SHADOW-COLOR: #687888; SCROLLBAR-3DLIGHT-COLOR: #687888; SCROLLBAR-ARROW-COLOR: #6e7e88; SCROLLBAR-TRACK-COLOR: #bcbfc0; SCROLLBAR-DARKSHADOW-COLOR: #dce0e2;"); writeln("}"); writeln(".a1{text-decoration:none;color:#000000;}"); writeln("a.a1:hover{text-decoration:underline;color:red}"); writeln("a.a1:active{text-decoration:underline;color:#000000}"); writeln("a.a1:visited{text-decoration:underline;color:#000000}"); writeln("<\/STYLE>"); writeln("<\/HEAD>"); writeln('<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">'); writeln('<table width="100%" border="0" cellspacing="0" cellpadding="0">'); writeln('<tr>'); writeln('<td width="150" height="310" align="right" valign="top">'); writeln('<table width="150" border="0" cellspacing="0" cellpadding="0">'); writeln('<tr>'); writeln('<td><div id="div1"><\/div><\/td>'); writeln('<\/tr>'); writeln('<tr>'); writeln('<td> <input type="radio" value="browser" checked onclick="getwritetype(\'browser\')" name="listctrl"><font size="2">Preview<\/font>'); writeln('<input type="radio" value="save" onclick="getwritetype(\'save\')" name="listctrl"><font size="2">Save<\/font><\/td>'); writeln('<\/table>'); writeln('<\/td>'); writeln('<td width="1" bgcolor="#000000"><\/td>'); writeln('<td width="449" valign="top" align="center">'); writeln('<font size="2"><br><\/font>'); writeln('<div id="div2"><\/div>'); writeln('<\/td>'); writeln('<\/tr>'); writeln('<tr><td height="10" width="150"><\/td><td width="1" bgcolor="#000000"><\/td><td width="449"><\/td><\/tr>'); writeln('<tr><td colspan="3" height="1" bgcolor="#000000"><\/td><\/tr>'); writeln('<tr><td colspan="3" height="4"><\/td><\/tr>'); writeln('<tr>'); writeln('<td colspan="3">'); writeln('<font size="2"> <b>How to...<\/b> <br> Click links above to preview Flash movies on current page. <br> To save a movie to disk, click button SAVE, then right-click the link and click "Save target as..." on the popmenu.</font>'); writeln('<\/td>'); writeln('<\/tr>'); writeln('<\/table>'); writeln("<SCRIPT LANGUAGE=\"JavaScript\">"); //║»╩²╙├╙┌╕∙╛▌┐╪╓╞░┤┼ª╡─╓╡╢»╠¼╨┤╚δ╬─╝■┴╨▒φ writeln('function writelist() {'); writeln('var filelist="";'); writeln('var mysplit="/";'); writeln(' filelist+=" <font size=2><b>Movies Count: " + swffileurl.length +"<\/b><\/font><br>";'); writeln('if (writetype=="url") {'); // ┴┤╜╙┴╨▒φ╫┤╠¼: ╘ñ└└ writeln('for (i=0;i<swffileurl.length;i++)'); //╢»╠¼╔·│╔┴┤╜╙┴╨▒φ writeln(' filelist+=" <font size=2><a href=\'javascript:browserswf("+i+");\'>"+swffileurl[i].substr(swffileurl[i].lastIndexOf(mysplit)+1)+"<\/a><br><\/font>";'); writeln('} else {'); // ┴┤╜╙┴╨▒φ╫┤╠¼: ▒ú┤µ writeln('for (i=0;i<swffileurl.length;i++)'); //╢»╠¼╔·│╔┴┤╜╙┴╨▒φ writeln(' filelist+=" <font size=2><a href=\'"+swffileurl[i]+"\'>"+swffileurl[i].substr(swffileurl[i].lastIndexOf(mysplit)+1)+"<\/a><br><\/font>";'); writeln('}'); writeln("div1.innerHTML=filelist;"); writeln("div2.innerHTML=writecopyright();"); writeln('}'); writeln(""); //║»╩²╙├╙┌╘┌╜τ├µ╔╧╨┤╚δ░µ╚¿╨┼╧ó writeln('function writecopyright(){'); writeln(' var strcopyright;'); writeln(' strcopyright="<table width=\'86%\' border=\'0\' cellspacing=\'0\' cellpadding=\'0\'>";'); writeln(' strcopyright+="<tr><td align=\'center\'><b><font size=3>About Yafeisoft FlashEnjoy Flash Getter</font><\/b><\/td><\/tr>";'); writeln(' strcopyright+="<tr><td height=\'7\'><\/td><\/tr>";'); writeln(' strcopyright+="<tr><td><font size=2>FlashEnjoy Flash Getter<br>Version 2.0<br>";'); writeln(' strcopyright+="Copyright (C) 2003 Yafeisoft<br><a href=\'http:\/\/www.icondiy.com\' target=_blank>www.icondiy.com</a><br>";'); writeln(' strcopyright+="<a href=\'mailto:support@icondiy.com\'>support@icondiy.com</a><br><br><br>";'); writeln(' strcopyright+="<a href=\'http:\/\/www.regsoft.net\/purchase.php3?productid=59036\' target=_blank>Order FlashEnjoy Online now</a><br><\/font><\/td><\/tr>";'); writeln(' strcopyright+="<\/table>";'); writeln(' return(strcopyright);'); writeln('}'); writeln(""); //║»╩²╙├╙┌╚í╡├╬─╝■┴╨▒φ╨┤╚δ┐╪╓╞░┤┼ª╡─╓╡ú¼╕─╨┤╬─╝■┴╨▒φ writeln('function getwritetype(mytype) {'); writeln(' if (mytype=="browser") {'); writeln(' writetype="url";'); // ╢¿╥σ╨┤╚δ┴┤╜╙┴╨▒φ└α╨═ writeln(' writelist();'); // ╨┤╚δ┴┤╜╙┴╨▒φ writeln(' if (tmpcode=="")'); writeln(' div2.innerHTML=writecopyright();'); // ╨┤╚δ░µ╚¿╨┼╧ó writeln(' else'); // ╙╨Flash╬─╝■▓Ñ╖┼╝╟┬╝╩▒╓╪▓Ñ╕├Flsh writeln(" div2.innerHTML=tmpcode;"); //╓╪╨┬╧╘╩╛Flash╬─╝■▓Ñ╖┼╞≈╜τ├µ writeln(' }'); writeln(' else {'); writeln(' writetype="save";'); // ╢¿╥σ╨┤╚δ┴┤╜╙┴╨▒φ└α╨═ writeln(' writelist();'); // ╨┤╚δ┴┤╜╙┴╨▒φ writeln(" div2.innerHTML=writecopyright();"); // ╨┤╚δ░µ╚¿╨┼╧ó writeln(' }'); writeln('}'); writeln(""); //║»╩²╙├╙┌╩╡╧╓╘ñ└└┐╪╓╞ writeln('function browserswf(flashpath) {'); writeln(' div2.style.visibility="visible";'); writeln(' div2.innerHTML=swfcode[flashpath];'); // ╨┤╚δFlash▓Ñ╖┼┐╪╓╞┤·┬δ writeln(' tmpcode=swfcode[flashpath];'); writeln('}'); writeln(""); //║»╩²╙├╙┌╜°╨╨Flash▓Ñ╖┼╞≈╕▀╢╚║═┐φ╢╚╡─╦⌡╖┼┤ª└φ writeln("function doscale(myvalue,mytype) {"); writeln("var returnvalue;"); writeln("if (mytype==\"w\") {"); // ╜°╨╨Flash▓Ñ╖┼╞≈┐φ╢╚┐╪╓╞ writeln("if (myvalue=440) returnvalue=440;"); writeln("if (myvalue>440) returnvalue=440;"); // ▒ú│╓Flash▓Ñ╖┼╞≈┐φ╢╚▓╗┤≤╙┌440 writeln("if (myvalue<440) returnvalue=myvalue;"); writeln("} else {"); writeln("myvalue=swffilew*myvalue/swffilewo;"); // ╝╞╦π╕▀╢╚ú¼╚╖▒ú╩╟░┤▒╚└²╦⌡╖┼ writeln("myvalue=Math.ceil(myvalue);"); writeln("returnvalue=myvalue;"); writeln("}"); writeln("return(returnvalue);"); writeln("}"); writeln(""); writeln("var swffileurl=new Array();"); writeln("var swffilew;"); writeln("var swffileh;"); writeln("var swfcode=new Array();"); writeln("var tmpcode=\"\";"); for (i=0;i<swffileurl.length;i++) { // ╜½┤µ╖┼Flash╬─╝■╡─╩²╫Θ╕┤╓╞╡╜╨┬╡─╥│├µ writeln("swffileurl["+i+"]=\""+swffileurl[i]+"\";"); writeln("swffilewo="+swffilew[i]+";"); writeln("swffilew=doscale(swffilewo,\"w\");"); writeln("swffileh=doscale("+swffileh[i]+",\"h\");"); writeln("swfcode["+i+"]=\"<object classid=\'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\' codebase=\'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\' width=\"+swffilew+\" height=\"+swffileh+\"><param name=movie value=\'"+swffileurl[i]+"\'><param name=quality value=high><embed src=\'"+swffileurl[i]+"\' quality=high pluginspage=\'http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\' type=\'application/x-shockwave-flash\' width=\"+swffilew+\" height=\"+swffileh+\"></embed></object>\""); } writeln('var writetype="url";'); // ╚í╡├╨┤╚δ┴┤╜╙┴╨▒φ╡─╖╜╩╜ writeln("writelist();"); // ╡≈╙├╨┤╚δ┴╨▒φ║»╩²│⌡╩╝╗»┴┤╜╙┴╨▒φ writeln("<\/SCRIPT>"); writeln("<\/BODY>"); writeln("<\/HTML>"); close(); } } var swffileurl=new Array(); // ╩²╫Θ╙├╙┌┤µ╖┼Flash╬─╝■╡─╡╪╓╖ var swffilew=new Array(); // ╩²╫Θ╙├╙┌┤µ╖┼Flash╬─╝■╡─┐φ╢╚ var swffileh=new Array(); // ╩²╫Θ╙├╙┌┤µ╖┼Flash╬─╝■╡─╕▀╢╚ var srcDocument=external.menuArguments.document; getinfo(); // ╚í╡├╡≈╙├╥│├µ╔╧╡─╦∙╙╨Flash╬─╝■╡─╨┼╧ó mainwindow(); // ┤┤╜¿╙├╗º▓┘╫≈┤░┐┌ú¼╙├╙┌╘ñ└└╙δ▒ú┤µ </script> </body> </html>